package cn.niit.smbms.dao;

import cn.niit.smbms.entity.SysUserReceiveAddres;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface SysUserReceiveAddresMapper {

    /**
     * 增加收货地址
     * @return
     */
    //@Insert("insert。。。")
    int insert(SysUserReceiveAddres addres);

    /**
     * 查询收货地址列表
     * @param addres
     * @return
     */
    List<SysUserReceiveAddres> selectByCondition(SysUserReceiveAddres addres);

    /**
     * 更新收货地址
     * @return
     */
    int update(SysUserReceiveAddres addres);

    /**
     * 删除收货地址
     * @return
     */
    int delete(Long receiveId);

    /**
     * 查询收货地址列表
     * @param receiveId
     * @return
     */
    SysUserReceiveAddres selectByreceiveId(Long receiveId);
}
